<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'jianjie.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
 
#btn1{width:70px;height:21px;font-size:12px;padding-top:3px;border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #666666;border-bottom:1px solid #666666}


</style>
<SCRIPT src="js/jquery.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">			
			function doCheck(){
                        var sbName = document.AddForm.sbName.value;   // 设备名称
                        var sbNumber = document.AddForm.sbNumber.value;   // 设备数量
                        var sbInfo = document.AddForm.sbInfo.value;   // 设备信息
                         var pic = document.AddForm.pic.value;   // 设备图片
                        if(sbName==""){
	                        alert("设备名称不能为空！");
	                        return false;
                        }
                        if(sbNumber==""){
                       		alert("设备数量不能为空！");
	                        return false;
                        }
                        
                        if(sbInfo==""){
                       		alert("设备信息不能为空！");
	                        return false;
                        }
                        
                         if(pic==""){
                       		alert("设备图片不能为空！");
	                        return false;
                        }
                        return true;
                      }
                        </script>
	</head>

	<body class="ContentBody">
		<form action="shebei.do?method=addSb" method="post" enctype="multipart/form-data" name="AddForm"
			id="fom" >
			<div class="MainDiv">
				<table width="99%" border="0" cellpadding="0" cellspacing="1"	bgcolor="#eefbfe"
					class="CContent">
					<tr>
						<th class="tablestyle_title">
							医院设备
						</th>
					</tr>
					<tr>
						<td class="CPanel">

							<table border="0" cellpadding="0" cellspacing="0"
								style="width: 100%">
								<TR>
									<TD width="100%">
										<fieldset style="height: 100%;">
											<legend>
												设备
											</legend>
											<table border="0" cellpadding="2" cellspacing="1"
												style="width: 100%">

												<tr>
													<td nowrap align="right" width="13%">
														设备名称:
													</td>
													<td width="41%">
														<input name="sbName" class="text" style="width: 250px"
															type="text"/>
														
													</td>
													<td align="right" width="19%">
														设备数量:
													</td>
													<td width="27%">
														<input name="sbNumber" id="Input22" class="text"
															style="width: 154px" onkeypress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false"  />
													</td>
												</tr>
												<tr>
													<td nowrap align="right" width="13%">
														设备信息:
													</td>
													<td width="41%">
														<textarea name="sbInfo"  cols="30" rows="5"></textarea>
													</td>
													<td align="right">
														设备图片:&nbsp;
													</td>
													<td> 
														<INPUT	TYPE="file" class="boxBorder" NAME="pic" size=20 id="d">
												</td>
												</tr>
											</table>
											<br />
										</fieldset>
									</TD>
								</TR>

							</TABLE>


						</td>
					</tr>

					<TR>
						<TD colspan="2" align="center" height="50px">
							<input type="submit"  value="添加" class="button" onclick="return doCheck()"/>
						</TD>
					</TR>
				</TABLE>

			</div>
		</form>
	</body>
</html>
